package cn.cloud9.designpattern.dp05proxy.proxy_04_compare;

import cn.cloud9.designpattern.dp05proxy.proxy_01_static.Personal;
import cn.cloud9.designpattern.dp05proxy.proxy_01_static.Tenement;
import cn.cloud9.designpattern.dp05proxy.proxy_03_jdk_dynamic.proxy_pack.MyProxyHandler;
import net.sf.cglib.core.DebuggingClassWriter;

/**
 * @projectName: Java
 * @author: 戴知舟
 * @date: 2022年05月24日 09:35
 * @version: 1.0
 */
public class ProxyCompareTest {
    public static void main(String[] args) {

        MyProxyHandler proxyHandler = new MyProxyHandler();
        Tenement instance = proxyHandler.getInstance(new Personal());
        instance.rentHouse();

        System.setProperty(DebuggingClassWriter.DEBUG_LOCATION_PROPERTY, "C:\\Users\\Administrator\\Desktop\\戴知舟的目录");

    }
}
